<html>
<body>
Reports assignment to, or modification of <b>for</b> statement parameters inside the body of a <b>for</b> loop.
While occasionally intended, this construct can be extremely confusing, and is often the result of a typo.
<p>
Assignments in basic <b>for</b> loops without an update statement are not reported.
In these cases the assignment is probably intended and can't be easily moved to the update part of the <b>for</b> loop.
For example:
<pre><code>
  <b>for</b> (<b>int</b> i = 0; i &lt; list.size(); ) {
    <b>if</b> (element.equals(list.get(i))) {
      list.remove(i);
    } <b>else</b> {
      i++; // modification of for loop parameter
    }
  }
</code></pre>
<!-- tooltip end -->
<p>

</body>
</html>